﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    abstract class NPC
    {
        private string npcname;
        private string workinfo;
        public string NPCName 
        {
            get { return this.npcname; }
            set { this.npcname = value; }
        }
        public string Workinfo
        {
            get { return this.workinfo; }
            set { this.workinfo = value; }
        }
        public abstract void Speak();
        public NPC() { }
        public NPC(string name,string workinfo) 
        {
            this.NPCName = name;
            this.Workinfo = workinfo;
        }

    }
}
